//
//  UIViewExtend.h
//  Amily
//
//  Created by "" on 15/1/7.
//  Copyright (c) 2015年 Amily. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UIView(Extend)
-(void) removeAllSubViews;
-(void) removeSubViewWithTag : (UInt32) uiTag ;
-(void) removeSubViewWithClass : (Class) oClass ;
-(UIView*) viewWithClass : (Class) oClass ;
-(NSArray*) subviewsWithClass : (Class) oClass ;
-(void) removeAllGestureRecognizer ;

-(void) autoresizingWithHorizontalCenter;
-(void) autoresizingWithVerticalCenter;
-(void) autoresizingWithStrechFullSize;
@end
@interface UIView(ViewFrameGeometry)
@property CGPoint origin;
@property CGSize size;

@property (readonly) CGPoint bottomLeft;
@property (readonly) CGPoint bottomRight;
@property (readonly) CGPoint topRight;

@property CGFloat height;
@property CGFloat width;

@property CGFloat top;
@property CGFloat left;

@property CGFloat bottom;
@property CGFloat right;

@property CGFloat x ;
@property CGFloat y ;

- (void) moveBy: (CGPoint) delta;
- (void) scaleBy: (CGFloat) scaleFactor;
- (void) fitInSize: (CGSize) aSize;

- (void) fitTheSubviews ;
- (void) ceilAllSubviews ;
-(void) frameIntegral ;
@end


